package com.xianyun.book.dto;

import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author ytt
 */
@Data
public class BookPurchaseCmd extends CommonCommand{
    /**书籍名称*/
    @NotEmpty
    private String bookName;
    private String isbn;
    /**ISBN码*/
    @NotEmpty
    private List<String> isbnList;
    /**书籍编号*/
    private String bookId;
    /**成色类型*/
    @NotNull
    private Integer finenessType;
    /**收件人*/
    @NotEmpty
    private String recipient;
    /**收件地址*/
    @NotEmpty
    private String shippingAddress;
    /**邮编*/
    @NotEmpty
    private String postCode;
    /**手机号*/
    @NotEmpty
    private String phoneNumber;
    /**购买数量*/
    @NotNull
    private Integer number;
    /**用户秘钥*/
    @NotEmpty
    private String userSecurity;
}
